home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 October / Chip_2002-10_cd1.bin / sharewar / hnet / hnetinfo.exe / {app} / HInfoHw / HInfoCPU.csy.chm / source / master.js < prev    next >
Text File  |  2002-04-14  |  4KB  |  150 lines

  1. //This is the master JavaScript file for the HTML Help documentation.
  2.  
  3. var Copyright = "Copyright© 2000-2001, Hnet Software .";
  4. //var Copyright = "Copyright© 2000-2001, ScanHw .";
  5.  
  6. function setCopyright(){
  7.   document.writeln(Copyright);
  8. }
  9.  
  10.  
  11. function doSection (secNum){
  12.         //display the section if it's not displayed; hide it if it is displayed
  13.         if (secNum.style.display=="none"){secNum.style.display=""}
  14.         else{secNum.style.display="none"}
  15. }
  16.  
  17. function noSection (secNum){
  18.         //remove the section when user clicks in the opened DIV
  19.         if (secNum.style.display==""){secNum.style.display="none"}
  20. }
  21.  
  22. function doExpand(paraNum,arrowNum){
  23.         //expand the paragraph and rotate the arrow; collapse and rotate it back
  24.         if (paraNum.style.display=="none"){paraNum.style.display="";arrowNum.src="../../arrowo.gif"}
  25.         else{paraNum.style.display="none";arrowNum.src="../../arrowc.gif"}
  26. }
  27.  
  28. //These functions control the behavior of the homepage go arrows
  29. function liteGo(spNo){
  30.         spNo.style.background="#cc0033";
  31.         spNo.style.color="#FFFFFF";
  32. }
  33.  
  34. function liteOff(spNo){
  35.         spNo.style.background="transparent";
  36.         spNo.style.color="#000000";
  37. }
  38.  
  39.     function HighLight(name) {
  40.       document.images[name].src="picture/"+name+"_on"+".gif";
  41.     };
  42.  
  43.     function LowLight(name) {
  44.       document.images[name].src="picture/"+name+"_off"+".gif";
  45.     };
  46.  
  47.     function PreLoad(name) {
  48.       document.images[name].src="picture/"+name+"_on"+".gif";
  49.     };
  50.     function Load(name) {
  51.       document.images[name].src="picture/"+name+"_off"+".gif";
  52.     };
  53.  
  54.  
  55.  
  56. function doExpandd(paraNum,arrowNum){
  57.  
  58. var isIE = (navigator.appName == "Microsoft Internet Explorer");
  59.  
  60.  
  61.  if (isIE){
  62.   if (document.all[paraNum].style.display==="none")
  63.   {
  64.     document.images[arrowNum].src="../../../arrowc.gif"
  65.     document.all[paraNum].style.display=""; 
  66.   }
  67.   else
  68.   {
  69.     document.images[arrowNum].src="../../../arrowo.gif"
  70.     document.all[paraNum].style.display="none"; 
  71.   }
  72.  }
  73.  
  74. }
  75.  
  76.  
  77.  
  78. //parametry 'exp' a 'ar'
  79. function doExpandPar(paraNum){
  80.   if (document.all["exp"+paraNum].style.display==="none")
  81.   {
  82.     document.images["ar"+paraNum].src="../../arrowc.gif"
  83.     document.all["exp"+paraNum].style.display=""; 
  84.   }
  85.   else
  86.   {
  87.     document.images["ar"+paraNum].src="../../arrowo.gif"
  88.     document.all["exp"+paraNum].style.display="none"; 
  89.   }
  90. }
  91. function doExpandAll(maxParaNum){
  92.   for(var i=0; i <= maxParaNum; i++)
  93.   {        
  94.  
  95.   if(i == 0)
  96.   {
  97.     if (document.all["exp"+0].style.display==="none")
  98.     {
  99.       document.images["ar"+i].src="../../arrowc.gif"
  100.       document.all["exp"+i].style.display=""; 
  101.     }
  102.     else
  103.     {
  104.       document.images["ar"+i].src="../../arrowo.gif"
  105.       document.all["exp"+i].style.display="none"; 
  106.     }
  107.    }
  108.    else
  109.    {
  110.     if (document.all["exp"+0].style.display==="none")
  111.     {
  112.       document.images["ar"+i].src="../../arrowo.gif"
  113.       document.all["exp"+i].style.display="none"; 
  114.  
  115.     }
  116.     else
  117.     {
  118.       document.images["ar"+i].src="../../arrowc.gif"
  119.       document.all["exp"+i].style.display=""; 
  120.  
  121.     }
  122.    }
  123.   }
  124. }
  125.  
  126. //parametry 'exp' a 'ar'
  127. function doListPar(paraNum){
  128.   if (document.all["exp"+paraNum].style.display==="none")
  129.   {
  130.     document.images["ar"+paraNum].src="../../booko.gif"
  131.     document.all["exp"+paraNum].style.display=""; 
  132.   }
  133.   else
  134.   {
  135.     document.images["ar"+paraNum].src="../../bookc.gif"
  136.     document.all["exp"+paraNum].style.display="none"; 
  137.   }
  138. }
  139.  
  140. function setColorExp(paraNum, action) {
  141.   if (action == "on")
  142.   {
  143.     document.all["hdr"+paraNum].style.color='blue';
  144.     }
  145.     else
  146.     {
  147.     document.all["hdr"+paraNum].style.color='navy';
  148.     }
  149.     }
  150.